package com.ls.example.TestSetterDI;

import com.ls.example.TestConstructorDI.Person;

public class Man {

    Person person;

    public Man(Person person) {
        this.person = person;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    @Override
    public String toString() {
        return "Man{" +
                "person=" + person +
                '}';
    }
}
